{include file="header.html"}
<script type="text/javascript">
	$(function(){

	});
</script>

<div id="rightTop">
	<p>整车运单</p>
	<ul class="subnav">
		<li><span>{$lang.manage}</span>
		</li>
		<li><a class="btn1" href="index.php?app=carload&amp;act=add">{$lang.add}</a></li>
	</ul>
</div>
<div class="mrightTop">
	<div class="fontl">
		<form method="get">
			<div class="left">
				<!--防止重复加载menu-->
				<input type="hidden" name="app" value="carload" />
                <input type="hidden" name="act" value="index" />
             	 	承运商:
                <input class="queryInput" type="text" name="wm_carrier" value="{$smarty.get.wm_carrier}" />
             	运单状态:
                <select class="querySelect" id="status" name="status">
                	<option value="">{$lang.select_pls}</option>
                	{html_options options=$status selected=$smarty.get.status}
                </select>
                <input type="submit" class="formbtn" value="{$lang.query}" />
			</div>
		</form>
	</div>
	<div class="fontr">{include file=page.top.html}</div>
	<div class="clear:both;"></div>
</div>
<div class="tdare">
	<table width="100%" cellspacing="0" class="dataTable">
		<!--{if $cars}-->
		<tr class="tatr1">
			<td width="20" class="firstCell"><input type="checkbox"
				class="checkall" />
			</td>
			<td align="left">{$lang.wm_stauts}</td>
			<td>{$lang.wm_type}</td>
			<td align="left">运单号</td>
			<td>{$lang.wm_carrier}</td>
			<td>	</td>
			<td>{$lang.wm_driver}</td>
			<td>{$lang.wm_driver_tel}</td>
			<td>{$lang.wm_opdate}</td>
			<td style="width: 200px">{$lang.handler}</td>
		</tr>
		<!--{/if}-->
		<!--{foreach from=$cars item=w}-->
		<tr class="tatr2">
		    <td class="firstCell"> <input type="checkbox" class="checkitem" value="{$w.wm_tid}"/></td>
			<td>{$w.wm_stauts|escape}</td>
			<td>{$w.wm_type|escape}</td>
			<td>{$w.wm_code|escape}</td>
			<td>{$w.wm_carrier}</td>
			<td>{$w.wm_vhc_code}</td>
			<td>{$w.wm_driver}</td>
			<td>{$w.wm_driver_tel}</td>
			<td>{$w.wm_opdate|date:Y-m-d H:i}</td>
            <td >
                {if $w.wm_stauts!='新建'}
				<a href="index.php?app=map&carid={$w.wm_uuid}&code={$w.wm_tid}&id={$w.wm_tid}" target="_blank">地图</a> |{/if}
				<a href="index.php?app=carload&amp;act=add&amp;id={$w.wm_tid}">{if $w.wm_stauts=='新建' || $w.wm_stauts=='已派' || $w.wm_stauts=='已接单'}{$lang.edit}{else}查看{/if}</a>
				{if $w.wm_stauts=='新建' || $w.wm_stauts=='已派' || $w.wm_stauts=='已接单'}
				| <a href="javascript:drop_confirm('{$lang.drop_confirm}', 'index.php?app=carload&amp;act=drop&amp;id={$w.wm_tid}');">{$lang.drop}</a>
				{/if}
            </td>
		</tr>
		<!--{foreachelse}-->
		<tr class="no_data">
			<td colspan="7">{$lang.no_data}</td>
		</tr>
		<!--{/foreach}-->
	</table>
	<!--{if $cars}-->
	<div id="dataFuncs">
		<div class="pageLinks">{include file=page.bottom.html}</div>
		<div id="batchAction" class="left paddingT15">
			&nbsp;&nbsp;
			 <input class="formbtn batchButton" type="button" value="{$lang.drop}" name="id" uri="index.php?app=carload&act=drop" presubmit="confirm('{$lang.drop_confirm}');" /> &nbsp;&nbsp;
		</div>
		<div class="clear:both;"></div>
	</div>
	<div class="clear"></div>
	<!--{/if}-->
</div>
{include file="footer.html"}
